package com.gxa.modules.sys.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.gxa.common.validator.group.AddGroup;
import com.gxa.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
@Data
@ApiModel("用户编辑模型")
public class UserUpdateDto {
    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("账户")
    @NotBlank(message = "账户不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String name;

    @ApiModelProperty("用户名")
    private String uname;

    @ApiModelProperty("电话号码")
    private String tel;

}
